package cc.zy.base.hr.entity;

import cc.zy.base.common.converter.TimeConverter;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import java.util.Date;

/**
 * @author TK
 * @time 2022/03/09 19:41:20
 */
@Data
@TableName("t_hr_examine_simple_log")
@Excel("日志表")
public class ExamineSimpleLog {

    /**
     * 日志id
     */
    @TableField("ID")
    @ExcelField(value = "日志id")
    private Integer id;

    /**
     * 试卷ID
     */
    @TableField("EXAMINE_SIMPLE_ID")
    @ExcelField(value = "试卷ID")
    private Integer examineSimpleId;

    /**
     * 考试用户ID
     */
    @TableField("STAFF_ID")
    @ExcelField(value = "考试用户ID")
    private Integer staffId;

    /**
     * 题目类型
     */
    @TableField("TYPE")
    @ExcelField(value = "题目类型")
    private Integer type;

    /**
     * 题目ID
     */
    @TableField("TOPIC_ID")
    @ExcelField(value = "题目ID")
    private Integer topicId;

    /**
     * 考试答案
     */
    @TableField("ANSWER")
    @ExcelField(value = "考试答案")
    private String answer;

    /**
     * 员工考试答案
     */
    @TableField("STAFF_ANSWER")
    @ExcelField(value = "员工考试答案")
    private String staffAnswer;

    /**
     * 员工考试答案
     */
    @TableField("OPTION_ANSWERS")
    @ExcelField(value = "员工考试答案")
    private String optionAnswers;

    /**
     * 题目分数
     */
    @TableField("SCORE")
    @ExcelField(value = "题目分数")
    private Integer score;

    /**
     * 是否正确
     */
    @TableField("RESULT")
    @ExcelField(value = "是否正确")
    private Integer result;

    /**
     * 员工获得分数
     */
    @TableField("STAFF_SCORE")
    @ExcelField(value = "员工获得分数")
    private Integer staffScore;

    /**
     * 创建时间
     */
    @TableField("CREATE_DATE")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "CTT")
    private Date createDate;
}
